import request from '@/utils/request'

// 查询车辆跨线运营配置列表
export function listVehicleRouteCross(query) {
  return request({
    url: '/dispatch/vehicleRouteCross/list',
    method: 'get',
    params: query
  })
}

// 查询车辆跨线运营配置详细
export function getVehicleRouteCross(id) {
  return request({
    url: '/dispatch/vehicleRouteCross/' + id,
    method: 'get'
  })
}

// 新增车辆跨线运营配置
export function addVehicleRouteCross(data) {
  return request({
    url: '/dispatch/vehicleRouteCross',
    method: 'post',
    data: data
  })
}

// 修改车辆跨线运营配置
export function updateVehicleRouteCross(data) {
  return request({
    url: '/dispatch/vehicleRouteCross',
    method: 'put',
    data: data
  })
}

// 删除车辆跨线运营配置
export function delVehicleRouteCross(id) {
  return request({
    url: '/dispatch/vehicleRouteCross/' + id,
    method: 'delete'
  })
}
